package pe.com.sysaut.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class Configuracion {

	Properties properties = null;
	
	public final static String CONFIG_FILE = "D:/vista.properties";
	
	private Configuracion() {

		Properties properties = new Properties();
		FileInputStream fis;
		try {
			fis = new FileInputStream(CONFIG_FILE);
			properties.load(fis);
			this.properties = properties;
		} catch (IOException ex) {
			ex.printStackTrace();
		}
	}

	public static Configuracion getInstance() {
		return ConfiguracionHolder.INSTANCE;
	}

	private static class ConfiguracionHolder {
		private static final Configuracion INSTANCE = new Configuracion();
	}

	public String getProperty(String key) {
		return this.properties.getProperty(key);
	}

}
